<?php
/*
 * Created on 01.02.2006
 *
 */

class conf_subChainHandler
{
    
    function startElement (& $sender, $attrs, $line)
    {
        if (empty($attrs['match']))
        {
            die ("Attribute match is missing in subChain tag in line $line\n");
        }
        $code = 'if ($filterchain->match('.$attrs['match'].')):'."\n";
        $sender->appendCode($code);
    }
    
    function endElement (& $sender)
    {
        $sender->appendCode("endif;\n");
    }
    
}

?>